#import "KqFlutterCoreWidgetPlugin.h"
#import "NativeOSSChannel.h"
#import "NativePickerChannel.h"
#import "NativeLocationChannel.h"
#import "NativeUnicodeChannel.h"
#import "NativeBackNativeChannel.h"

@implementation KqFlutterCoreWidgetPlugin
+ (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar {
  FlutterMethodChannel* channel = [FlutterMethodChannel
      methodChannelWithName:@"kq_flutter_core_widget"
            binaryMessenger:[registrar messenger]];
  KqFlutterCoreWidgetPlugin* instance = [[KqFlutterCoreWidgetPlugin alloc] init];
  [registrar addMethodCallDelegate:instance channel:channel];
    
    
    [NativeBackNativeChannel registerWithRegistrar:registrar];
    
    [NativeLocationChannel registerWithRegistrar:registrar];

    [NativeOSSChannel registerWithRegistrar:registrar];
    
    [NativePickerChannel registerWithRegistrar:registrar];
    
    
    [NativeUnicodeChannel registerWithRegistrar:registrar];
}

- (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result {
  if ([@"getPlatformVersion" isEqualToString:call.method]) {
    result([@"iOS " stringByAppendingString:[[UIDevice currentDevice] systemVersion]]);
  } else {
    result(FlutterMethodNotImplemented);
  }
}

@end
